
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.main {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background-color: #f0f7ff;
}

.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #c7def1 0%, #778997 100%);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  flex-shrink: 0;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.sidebar .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.sidebar .logo img {
  height: 80px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.sidebar a, .parent-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 14px 25px;
  margin: 4px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.sidebar a:hover, 
.parent-link:hover,
.parent-menu.active .parent-link {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateX(5px);
}

.menu { list-style: none; }
.parent-menu { position: relative; }

.toggle-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.3s;
}

.parent-menu.active .toggle-icon {
  transform: translateY(-50%) rotate(180deg);
}


.submenu {
  display: none;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 5px 10px;
  border-radius: 8px;
  padding: 5px 0;
}

.submenu {
  list-style: none;
}

.parent-menu.active .submenu { display: block; }

.submenu a {
  padding-left: 45px;
  font-size: 14px;
  opacity: 0.8;
}

.submenu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.content {
  flex: 1;
  background: linear-gradient(135deg, #f5faff 0%, #eef6fd 100%);
  overflow-y: auto;
  position: relative;
}

.content::-webkit-scrollbar {
  width: 8px;
}
.content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.content-header {
  height: 220px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: linear-gradient(90deg, #c7def1 0%, #98aec4 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(58, 123, 213, 0.2);
  position: relative;
  overflow: hidden;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #fff;
  border: 4px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.username {
  font-size: 24px;
  font-weight: 600;
  margin-left: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.home-button {
  padding: 10px 24px;
  background-color: #e7edf246;
  color: rgba(241, 237, 237, 0.785);
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
  z-index: 2;
}

.home-button:hover {
  background-color: white;
  color: rgb(30, 29, 29);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}